# Contributor: Philipp Glaum <p@pglaum.de>
# Maintainer: Philipp Glaum <p@pglaum.de>
pkgname=py3-pymediainfo
_pkgname=pymediainfo
pkgver=4.2.1
pkgrel=0
pkgdesc="A Python wrapper for the mediainfo library."
url="https://pypi.org/project/pymediainfo/"
arch="noarch"
license="MIT"
depends="libmediainfo python3"
checkdepends="py3-pytest py3-pytest-runner"
makedepends="py3-setuptools py3-setuptools_scm"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="33343838312ce240a23fa3856d808bf4b1346a1c65ed99c0405664aceaf452df610144114c228ad43e525f7abc9609420071bc6960f92b68ed7abe5dae8764aa  pymediainfo-4.2.1.tar.gz"
